﻿using PARK.Common.Const;
using SqlSugar;
using System;

namespace PARK.Consumer.Entity
{
    /// <summary>
    /// 消费机
    /// </summary>
    [SugarTable("consum_machine")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class ConsumMachineEntity
    {
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "MachineId", IsPrimaryKey = true)]
        public string MachineId { get; set; }
        
        /// <summary>
        /// 消费机编号
        /// </summary>
        [SugarColumn(ColumnName = "MachineNo")]        
        public string MachineNo { get; set; }
        
        /// <summary>
        /// 消费机名称
        /// </summary>
        [SugarColumn(ColumnName = "MachineName")]        
        public string MachineName { get; set; }
        
        /// <summary>
        /// 消费机SN
        /// </summary>
        [SugarColumn(ColumnName = "MachineSerialNum")]        
        public string MachineSerialNum { get; set; }
        
        /// <summary>
        /// 商户Id
        /// </summary>
        [SugarColumn(ColumnName = "MerchantId")]        
        public string MerchantId { get; set; }
        
        /// <summary>
        /// 商户名称
        /// </summary>
        [SugarColumn(ColumnName = "MerchantName")]        
        public string MerchantName { get; set; }
        
        /// <summary>
        /// 安装日期
        /// </summary>
        [SugarColumn(ColumnName = "InstallDate")]        
        public DateTime? InstallDate { get; set; }
        
        /// <summary>
        /// 安装位置
        /// </summary>
        [SugarColumn(ColumnName = "InstallAddress")]        
        public string InstallAddress { get; set; }
        
        /// <summary>
        /// 消费机状态 1启用 -1停用
        /// </summary>
        [SugarColumn(ColumnName = "MachineStatus")]        
        public int? MachineStatus { get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "Remark")]        
        public string Remark { get; set; }
        
        /// <summary>
        /// 创建人Id
        /// </summary>
        [SugarColumn(ColumnName = "CreateUser")]        
        public string CreateUser { get; set; }
        
        /// <summary>
        /// 创建人姓名
        /// </summary>
        [SugarColumn(ColumnName = "CreateUserName")]        
        public string CreateUserName { get; set; }
        
        /// <summary>
        /// 创建日期
        /// </summary>
        [SugarColumn(ColumnName = "CreateDate")]        
        public DateTime? CreateDate { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "LastUpdateUser")]        
        public string LastUpdateUser { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "LastUpdateUserName")]        
        public string LastUpdateUserName { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "LastUpdateDate")]        
        public DateTime? LastUpdateDate { get; set; }
        
        /// <summary>
        /// 删除标记 1是 0否
        /// </summary>
        [SugarColumn(ColumnName = "IsDeleted")]        
        public int? IsDeleted { get; set; }
        
        /// <summary>
        /// 删除人
        /// </summary>
        [SugarColumn(ColumnName = "DeleteUser")]        
        public string DeleteUser { get; set; }
        
        /// <summary>
        /// 删除人姓名
        /// </summary>
        [SugarColumn(ColumnName = "DeleteUserName")]        
        public string DeleteUserName { get; set; }
        
        /// <summary>
        /// 删除时间
        /// </summary>
        [SugarColumn(ColumnName = "DeleteDate")]        
        public DateTime? DeleteDate { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Dbtimestamp")]        
        public string Dbtimestamp { get; set; }

        /// <summary>
        /// 排序码
        /// </summary>
        [SugarColumn(ColumnName = "SortCode")]
        public int? SortCode { get; set; } = 1;
        
        /// <summary>
        /// 是否在线 1是 0否
        /// </summary>
        [SugarColumn(ColumnName = "IsOnline")]        
        public int? IsOnline { get; set; }
        
        /// <summary>
        /// 最后在线时间
        /// </summary>
        [SugarColumn(ColumnName = "LastOnLineTime")]        
        public DateTime? LastOnLineTime { get; set; }
        
        /// <summary>
        /// 同步时钟 0否 1已同步
        /// </summary>
        [SugarColumn(ColumnName = "IsSyntime")]        
        public int? IsSyntime { get; set; }
        
        /// <summary>
        /// 最后同步时钟时间
        /// </summary>
        [SugarColumn(ColumnName = "LastSyntime")]        
        public DateTime? LastSyntime { get; set; }
        
        /// <summary>
        /// 当前应用版本
        /// </summary>
        [SugarColumn(ColumnName = "AppVer")]        
        public string AppVer { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "dbDate")]        
        public DateTime? DbDate { get; set; }

        /// <summary>
        /// 所属公司Id
        /// </summary>
        [SugarColumn(ColumnName = "CompanyId")]
        public string CompanyId { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        [SugarColumn(ColumnName = "CompanyName")]
        public string CompanyName { get; set; }

        /// <summary>
        /// 物联卡号
        /// </summary>
        [SugarColumn(ColumnName = "IOTcardNo")]
        public string IOTcardNo { get; set; }

        
    }
}